<!--投诉处理统计表-->
<template>
<div class="public-common">
    <div class="public-title">请选择查询条件</div>
    <el-form :model="form" label-width="120px">
        <el-row>
            <el-col :span="4">
                <el-form-item label="统计年份">
                   <el-select style="width: 100%;" placeholder="请选择" v-model="form.carzl1">
                   	<el-option v-for="(v,i) in item1" :value="v.value" :key="i" :label="v.text">{{v.text}}</el-option>
                   </el-select>
                </el-form-item>
            </el-col>
            <el-col :span="4">
                <el-form-item label="开始月份">
                    <el-select style="width: 100%;" placeholder="请选择" v-model="form.carzl2">
                    	<el-option v-for="(v,i) in item2" :value="v.value" :key="i" :label="v.text">{{v.text}}</el-option>
                    </el-select>
                </el-form-item>
            </el-col>
            <el-col :span="4">
                <el-form-item label="截止月份">
                    <el-select style="width: 100%;" placeholder="请选择" v-model="form.carzl3">
                    	<el-option v-for="(v,i) in item3" :value="v.value" :key="i" :label="v.text">{{v.text}}</el-option>
                    </el-select>
                </el-form-item>
            </el-col>
            <el-col :span="4">
                <el-form-item label="图标类型">
                    <el-select style="width: 100%;" placeholder="请选择" v-model="form.carzl4">
                    	<el-option v-for="(v,i) in item4" :value="v.value" :key="i" :label="v.text">{{v.text}}</el-option>
                    </el-select>
                </el-form-item>
            </el-col>
            <el-col :span="4">
                <el-form-item label="统计类型">
                    <el-select style="width: 100%;" placeholder="请选择" v-model="form.carzl5">
                    	<el-option v-for="(v,i) in item5" :value="v.value" :key="i" :label="v.text">{{v.text}}</el-option>
                    </el-select>
                </el-form-item>
            </el-col>
            <el-col :span="4">
                 <el-button type="primary" style=" margin-left: 10px;">确认</el-button>
            </el-col>
        </el-row>
    </el-form>
    <div class="public-title" style="margin-top: 20px;">投诉处理统计列表</div>
    <el-table :data="tabledata" size="mini" border stripe header-row-class-name="textcenter">
            <el-table-column
                label="车牌号" fixed="left" prop="a1">
            </el-table-column>
            <el-table-column
                label="时间" prop="a2">
            </el-table-column>
            <el-table-column
                label="地点" prop="a3">
            </el-table-column>
            <el-table-column
                label="车队" prop="a4">
            </el-table-column>
            <el-table-column
                label="驾驶员" prop="a5">
            </el-table-column>
            <el-table-column
                label="被投诉原因" prop="a6">
            </el-table-column>
            <el-table-column
                label="处理结果" prop="a7">
            </el-table-column>
            <el-table-column
                label="投诉率" prop="a8">
            </el-table-column>
        </el-table>
        <el-pagination
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page="page.now"
        :page-sizes="page.sizes"
        :page-size="page.pagesize"
        layout="total, sizes, prev, pager, next, jumper"
        :total="page.total" style="margin-top:10px;">
        </el-pagination>
</div>
</template>

<script>
export default {
    data(){
        return {
              form:{
                  carzl1:'',
                  carzl2:'',
                  carzl3:'',
                  carzl4:'',
                  carzl5:'',
              },
              tabledata:[
                {
                    a1: '陕A23121',
                    a2: '2018-10-10',
                    a3: '联合路十五号',
                    a4: '宝马车队',
                    a5: '丁建国',
                    a6: '服务态度差',
                    a7: '已解决',
                    a8: '20%',
                },
                {
                    a1: '陕A57411',
                    a2: '2018-10-10',
                    a3: '联合路十五号',
                    a4: '奔驰车队',
                    a5: '丁海',
                    a6: '服务态度差',
                    a7: '已解决',
                    a8: '25%',
                },
                {
                    a1: '陕A56712',
                    a2: '2018-10-10',
                    a3: '联合路十五号',
                    a4: '奥迪车队',
                    a5: '刘小能',
                    a6: '服务态度差',
                    a7: '已解决',
                    a8: '30%',
                },
              ],
              page:{
                now:1,
                pagesize:10,
                sizes:[2,10, 20, 50, 100],
                total:0,
                key:''
              },
              item1:[
              	{text:'2018年',value:'0'},
              	{text:'2019年',value:'1'},
              ],
              item2:[
              	{text:'1月',value:'0'},
              	{text:'2月',value:'1'},
              	{text:'3月',value:'2'},
                {text:'4月',value:'3'},
                {text:'5月',value:'4'},
                {text:'6月',value:'5'},
                {text:'7月',value:'6'},
                {text:'8月',value:'7'},
                {text:'9月',value:'8'},
                {text:'10月',value:'9'},
                {text:'11月',value:'10'},
                {text:'12月',value:'11'},
              ],
              item3:[
              	{text:'1月',value:'0'},
              	{text:'2月',value:'1'},
              	{text:'3月',value:'2'},
              	{text:'4月',value:'3'},
              	{text:'5月',value:'4'},
              	{text:'6月',value:'5'},
              	{text:'7月',value:'6'},
              	{text:'8月',value:'7'},
              	{text:'9月',value:'8'},
              	{text:'10月',value:'9'},
              	{text:'11月',value:'10'},
              	{text:'12月',value:'11'},
              ],
              item4:[
              	{text:'统计表',value:'0'},
              	{text:'扇形图',value:'1'},
              	{text:'柱状图',value:'2'},
              ],
              item5:[
              	{text:'按车辆',value:'0'},
              ],

        }
    },
    methods:{
        search(){
            alert("search")
        },
        //分页
        handleSizeChange(pagesize){
            this.page.pagesize = pagesize;
            this.search(true,true);
        },
        handleCurrentChange(pageno){
            this.page.now = pageno;
            this.search(true,true);
        }

    }
}
</script>

<style>
  .el-form-item .el-form-item__label{ width: 90px !important;}
  .el-form-item .el-form-item__content{ margin-left: 90px !important;}
.public-common .el-form-item .el-input{ width: 100%;}
.public-title{line-height: 30px;background-color: #deecfd;padding:0 10px;margin-bottom:20px;color: #15428F}

</style>
